<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepage
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: manifest.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
$routeStartP = "pageitems";
$routeStartS = "pageitem";
$module = null;
$controller = null;
$action = null;
$request = Zend_Controller_Front::getInstance ()->getRequest ();
if (! empty ( $request )) {
	$module = $request->getModuleName (); // Return the current module name.
	$action = $request->getActionName ();
	$controller = $request->getControllerName ();
}
if (empty ( $request ) || ! ($module == "default" && $controller == "sdk" && $action == "build")) {
	$routeStartP = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'sitepage.manifestUrlP', "pageitems" );
	$routeStartS = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'sitepage.manifestUrlS', "pageitem" );
}
return array ('package' => array ('type' => 'module', 'name' => 'sitepage', 'version' => '4.1.8', 'path' => 'application/modules/Sitepage', 'title' => 'Directory / Pages', 'description' => 'Directory / Pages', 'author' => 'SocialEngineAddOns', 'date' => 'Thursday, 05 May 2011 18:33:08 +0000', 'copyright' => 'Copyright 2010-2011 BigStep Technologies Pvt. Ltd.', 'actions' => array ('install', 'upgrade', 'refresh', 'enable', 'disable' ), 'callback' => array ('path' => 'application/modules/Sitepage/settings/install.php', 'class' => 'Sitepage_Installer' ), 'directories' => array ('application/modules/Sitepage' ), 'files' => array ('application/languages/en/sitepage.csv' ) ), // Hooks ---------------------------------------------------------------------
'hooks' => array (array (// 'event' => 'addActivity',
'event' => 'onRenderLayoutDefault', 'resource' => 'Sitepage_Plugin_Core' ), array ('event' => 'onStatistics', 'resource' => 'Sitepage_Plugin_Core' ), array ('event' => 'onUserDeleteBefore', 'resource' => 'Sitepage_Plugin_Core' ) ), // Items ---------------------------------------------------------------------
'items' => array ('sitepage_page', 'sitepage_album', 'sitepage_photo', 'sitepage_topic', 'sitepage_post', 'sitepage_profilemap', 'sitepage_claim', 'sitepage_package', 'sitepage_gateway', 'sitepage_listmemberclaims', 'sitepage_gateway', 'sitepage_itemofthedays', 'sitepage_transaction', 'sitepage_import', 'sitepage_importfile' ), // Route--------------------------------------------------------------------
'routes' => array ('sitepage_extended' => array ('route' => $routeStartP . '/:controller/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'home' ), 'reqs' => array ('controller' => '\D+', 'action' => '\D+' ) ), 'sitepage_general' => array ('route' => $routeStartP . '/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'home' ), 'reqs' => array ('action' => '(home|index|manage|create|subcategory|pageurlvalidation|get-search-pages|subsubcategory)' ) ), 

'sitepage_claimpages' => array ('route' => $routeStartP . '/claim/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'claim', 'action' => 'index' ), 'reqs' => array ('action' => '(claim-page|get-pages|terms|my-pages|delete)' )

 ), 

'sitepage_dashboard' => array ('route' => $routeStartP . '/dashboard/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'dashboard' )//'action' => 'index',
, 'reqs' => array ('action' => '(get-started|edit-style|edit-location|overview|edit-address|profile-type|marketing|foursquare-help|contact|featured-owners|profile-picture|remove-photo|unhide-photo|app|foursquare|favourite|favourite-delete|upload-photo|wishlist)' ) ), 'sitepage_profilepage' => array ('route' => $routeStartP . '/profilepage/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'profile' )//'action' => 'index',
, 'reqs' => array ('action' => '(message-owner|tell-a-friend|print)' ) ), 'sitepage_like' => array ('route' => $routeStartP . '/like/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'like' )//'action' => 'index',
, 'reqs' => array ('action' => '(global-likes|like-pages|send-update|mylikes)' ) ), 

'sitepage_packages' => array ('route' => $routeStartP . '/package/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'package', 'action' => 'index' ), 'reqs' => array ('action' => '(detail|update-package|update-confirmation)' ) ), 

'sitepage_manageadmins' => array ('route' => $routeStartP . '/manageadmin/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'manageadmin', 'action' => 'index' ), 'reqs' => array ('action' => '(my-pages|manage-auto-suggest|list|delete)' ) ), 

// Public
'sitepage_entry_view' => array ('route' => $routeStartS . '/:page_url/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'view' ) ), // User


'sitepage_delete' => array ('route' => $routeStartP . '/delete/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'delete' ), 'reqs' => array ('page_id' => '\d+' ) ), 'sitepage_publish' => array ('route' => $routeStartP . '/publish/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'publish' ), 'reqs' => array ('page_id' => '\d+' ) ), 'sitepage_close' => array ('route' => $routeStartP . '/close/:page_id/:closed/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'close' ) ), 'sitepage_edit' => array ('route' => $routeStartP . '/edit/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'edit', 'page_id' => '0' ) ), 'sitepage_session_payment' => array ('route' => $routeStartP . '/payment/sessionpayment/', 'defaults' => array ('module' => 'sitepage', 'controller' => 'package', 'action' => 'payment' ) ), 'sitepage_payment' => array ('route' => $routeStartP . '/payment/', 'defaults' => array ('module' => 'sitepage', 'controller' => 'payment', 'action' => 'index' ) ), 'sitepage_process_payment' => array ('route' => $routeStartP . '/payment/process', 'defaults' => array ('module' => 'sitepage', 'controller' => 'payment', 'action' => 'process' ) ), 'sitepage_insights' => array ('route' => $routeStartP . '/insights/:action/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'insights', 'action' => 'index', 'page_id' => '0' ) ), 'sitepage_tags' => array ('route' => $routeStartP . '/tagscloud/:page/', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'tags-cloud', 'page' => 1 ) ), 'sitepage_photoalbumupload' => array ('route' => $routeStartP . '/photo/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'photo', 'action' => 'upload-album', 'page_id' => '1' ) ), 'sitepage_imagephoto_specific' => array ('route' => $routeStartP . '/photo/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'photo', 'action' => 'view' ), 'reqs' => array ('action' => '(view|photo-edit|remove|make-page-profile-photo)' ) ), 'sitepage_albumphoto_general' => array ('route' => $routeStartP . '/album/:action/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'album', 'action' => 'view' ), 'reqs' => array ('action' => '(edit|delete|edit-photos|view-album|view|album-order)' ) ), 'sitepage_general_category' => array ('route' => $routeStartP . '/:category_id/:categoryname/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('category_id' => '\d+' ) ), 'sitepage_general_subcategory' => array ('route' => $routeStartP . '/:category_id/:categoryname/:subcategory_id/:subcategoryname/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('category_id' => '\d+', 'subcategory_id' => '\d+' )

 ), 'sitepage_general_subsubcategory' => array ('route' => $routeStartP . '/:category_id/:categoryname/:subcategory_id/:subcategoryname/:subsubcategory_id/:subsubcategoryname/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('category_id' => '\d+', 'subcategory_id' => '\d+' )

 ), 

'sitepage_layout' => array ('route' => $routeStartP . '/layout/:page_id/', 'defaults' => array ('module' => 'sitepage', 'controller' => 'layout', 'action' => 'layout' ), 'reqs' => array ('page_id' => '\d+' ) ), 'sitepage_ajaxhomelist' => array ('route' => $routeStartP . '/ajaxhomelist/', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'ajax-home-list' ) ), 'sitepage_reports' => array ('route' => $routeStartP . '/insights/:action/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'insights', 'action' => 'export-report', 'page_id' => '0' ) ), 'sitepage_webpagereport' => array ('route' => $routeStartP . '/insights/:action/:page_id/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'insights', 'action' => 'export-webpage', 'page_id' => '0' ) ), 'sitepage_homesponsored' => array ('route' => $routeStartP . '/homesponsored', 'defaults' => array ('module' => 'sitepage', 'controller' => 'index', 'action' => 'home-sponsored' ) ), // User
'sitepage_widget' => array ('route' => 'admin/pageitem/widgets/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'admin-widgets', 'action' => 'index' ) ), // User
'sitepage_itemofday' => array ('route' => 'admin/pageitem/items/day/:page/*', 'defaults' => array ('module' => 'sitepage', 'controller' => 'admin-items', 'action' => 'day', 'page' => 1 ) ) ) );
?>